package com.lh.web.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.github.pagehelper.PageHelper;
import com.lh.common.entity.admin.AppVersion;
import com.lh.common.utils.PageUtils;
import com.lh.web.dao.admin.AppVersionMapper;
import com.lh.web.service.AppVersionService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author FH
 * @ClassName: AppVersionServiceImpl
 * @Description: (类作用)
 * @date: 2020-06-24 9:49
 */
@Service
public class AppVersionServiceImpl extends ServiceImpl<AppVersionMapper, AppVersion> implements AppVersionService {

    @Override
    public PageUtils queryAppVersionList(Integer pageNum, Integer pageSize) {
        PageHelper.startPage(pageNum, pageSize);
        List<AppVersion> notices = this.baseMapper.queryAppVersionList();
        return new PageUtils(notices);
    }

    @Override
    public int insertAppVersion(AppVersion appVersion) {
        return this.baseMapper.insertAppVersion(appVersion);
    }

    @Override
    public int updateAppVersion(AppVersion appVersion) {
        return this.baseMapper.updateAppVersion(appVersion);
    }

    @Override
    public int deleteAppVersion(Long[] ids) {
        return this.baseMapper.deleteAppVersion(ids);
    }
}
